package com.example.Proxy.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * Created by Administrator on 2019/4/28.
 */
@Controller()
@RequestMapping("/hellowWord")
public class demo {

    @RequestMapping()
    @ResponseBody
    public String hellowWord() {
        ProxyTest pt =new ProxyTest();
       // String s = pt.doProxy("https://www.baidu.com");
        String s = pt.doProxy("https://www.google.com/");
        return s;
    }

}
